package com.qiche.model;

import java.util.Date;
import javax.persistence.*;

@Table(name = "lucky_draw")
public class LuckyDraw {
    @Id
    private Integer id;

    /**
     * 门店id
     */
    @Column(name = "merchant_id")
    private Integer merchantId;

    /**
     * 抽奖标题
     */
    @Column(name = "lucky_draw_title")
    private String luckyDrawTitle;

    /**
     * 开始时间
     */
    @Column(name = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @Column(name = "end_time")
    private Date endTime;

    /**
     * 抽奖规则
     */
    @Column(name = "lucky_draw_rule")
    private String luckyDrawRule;
    
    /**
     * 总抽奖限制
     */
    @Column(name = "lucky_draw_limit")
    public Integer luckyDrawLimit;

    /**
     * 总抽奖机会
     */
    @Column(name = "overall_lucky_draw")
    private Integer overallLuckyDraw;

    /**
     * 每天抽奖机会
     */
    @Column(name = "lucky_draw_day")
    private Integer luckyDrawDay;

    /**
     * 每人中奖次数
     */
    private Integer number;

    /**
     * 总中奖率
     */
    private Double percentage;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    
    /**
	 * @return the luckyDrawLimit
	 */
	public Integer getLuckyDrawLimit() {
		return luckyDrawLimit;
	}

	/**
	 * @param luckyDrawLimit the luckyDrawLimit to set
	 */
	public void setLuckyDrawLimit(Integer luckyDrawLimit) {
		this.luckyDrawLimit = luckyDrawLimit;
	}

	/**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取门店id
     *
     * @return merchant_id - 门店id
     */
    public Integer getMerchantId() {
        return merchantId;
    }

    /**
     * 设置门店id
     *
     * @param merchantId 门店id
     */
    public void setMerchantId(Integer merchantId) {
        this.merchantId = merchantId;
    }

    /**
     * 获取抽奖标题
     *
     * @return lucky_draw_title - 抽奖标题
     */
    public String getLuckyDrawTitle() {
        return luckyDrawTitle;
    }

    /**
     * 设置抽奖标题
     *
     * @param luckyDrawTitle 抽奖标题
     */
    public void setLuckyDrawTitle(String luckyDrawTitle) {
        this.luckyDrawTitle = luckyDrawTitle;
    }

    /**
     * 获取开始时间
     *
     * @return start_time - 开始时间
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * 设置开始时间
     *
     * @param startTime 开始时间
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * 获取结束时间
     *
     * @return end_time - 结束时间
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * 设置结束时间
     *
     * @param endTime 结束时间
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * 获取抽奖规则
     *
     * @return lucky_draw_rule - 抽奖规则
     */
    public String getLuckyDrawRule() {
        return luckyDrawRule;
    }

    /**
     * 设置抽奖规则
     *
     * @param luckyDrawRule 抽奖规则
     */
    public void setLuckyDrawRule(String luckyDrawRule) {
        this.luckyDrawRule = luckyDrawRule;
    }

    /**
     * 获取总抽奖机会
     *
     * @return overall_lucky_draw - 总抽奖机会
     */
    public Integer getOverallLuckyDraw() {
        return overallLuckyDraw;
    }

    /**
     * 设置总抽奖机会
     *
     * @param overallLuckyDraw 总抽奖机会
     */
    public void setOverallLuckyDraw(Integer overallLuckyDraw) {
        this.overallLuckyDraw = overallLuckyDraw;
    }

    /**
     * 获取每天抽奖机会
     *
     * @return lucky_draw_day - 每天抽奖机会
     */
    public Integer getLuckyDrawDay() {
        return luckyDrawDay;
    }

    /**
     * 设置每天抽奖机会
     *
     * @param luckyDrawDay 每天抽奖机会
     */
    public void setLuckyDrawDay(Integer luckyDrawDay) {
        this.luckyDrawDay = luckyDrawDay;
    }

    /**
     * 获取每人中奖次数
     *
     * @return number - 每人中奖次数
     */
    public Integer getNumber() {
        return number;
    }

    /**
     * 设置每人中奖次数
     *
     * @param number 每人中奖次数
     */
    public void setNumber(Integer number) {
        this.number = number;
    }

    /**
     * 获取总中奖率
     *
     * @return percentage - 总中奖率
     */
    public Double getPercentage() {
        return percentage;
    }

    /**
     * 设置总中奖率
     *
     * @param percentage 总中奖率
     */
    public void setPercentage(Double percentage) {
        this.percentage = percentage;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return update_time
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}